package day02;

public class demo4 {
    public static void main(String[] args) {
      zhishu(201);
    }
    public static void zhishu(int x){
        boolean zhishu;
        int a;
        while (true) {
            zhishu = true;
            for (a = 2; a * a <= x; a++) {
                if (x % a == 0) {
                    zhishu = false;
                    break;
                }
            }
            if (zhishu) {
                System.out.println("大于200的最小的质数是: " + x);
                break;
            }
            x++;
        }
    }
}
